package com.cwnu.entity;

import jakarta.validation.constraints.NotNull;

public class Category {

    @NotNull
    private Integer id; // 类别id

    @NotNull
    private String categoryName; // 类别名称

    @NotNull
    private Integer createId; // 创建人id

    public Category() {
    }

    public Category(Integer id, String categoryName, Integer createId) {
        this.id = id;
        this.categoryName = categoryName;
        this.createId = createId;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return categoryName
     */
    public String getCategoryName() {
        return categoryName;
    }

    /**
     * 设置
     * @param categoryName
     */
    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    /**
     * 获取
     * @return createId
     */
    public Integer getCreateId() {
        return createId;
    }

    /**
     * 设置
     * @param createId
     */
    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public String toString() {
        return "Category{id = " + id + ", categoryName = " + categoryName + ", createId = " + createId + "}";
    }
}
